package com.dragon.pojo.Problem;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Problem {

    private Integer id;

    private String titleName;

    private List<String> algorithmTag;

    private String description;

    private String inputFormat = "无";

    private String outputFormat = "无";

    private String tips = "";

    private Integer difficulty;

    private long timeLimit = 1000;

    private long memoryLimit = 262144;

    private List<String> inputExample;

    private List<String> outputExample;

    private List<String> inputList;

    private List<String> outputList;

    private String creator = "佚名";

    private Integer completeStatus;

    private Integer score;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
